<?php

namespace App\Http\Controllers\Api\V1\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class UserFreeWithdrawResource extends JsonResource
{
    public function toArray($request)
    {
	    $resource = $this->resource;
	    
        $data = [
	        'id' => (int)$resource->id,
	        'gold_free_withdraw_quota' => $resource->freeWithdrawQuota(),
		    
        ];
        
        return $data;
    }
}
